<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <script>
        var divs = document.getElementsByTagName('div');
        console.log(divs); //HTMLCollection(5)0: div1: div2: div3: div4: divlength: 5__proto__: HTMLCollection
        
    </script>
</body>
</html>